package com.tbi.graphcolouring;

import java.util.Arrays;

public class PopulationEntity implements Comparable<PopulationEntity>{
	public int[] colors;
	public int rating;
	
	public PopulationEntity(int graphSize) {
		this.rating = Integer.MAX_VALUE;
		this.colors = new int[graphSize];
	}
	
	@Override
	public int compareTo(PopulationEntity pe) {
		return this.rating - pe.rating;
	}
	
	@Override
	public String toString() {
		return "Rating: "+this.rating+"; colors: "+Arrays.toString(colors);
	}
}
